package com.cloud.async.result.core.product;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * @author chengrui
 * @title: StandardResult
 * @projectName webCloudAsync
 * @description: 结果处理具体实现类（标准实现）
 * @date 2021/10/10 20:38
 */
public class StandardResult extends AsyncResult {

    private final Log logger = LogFactory.getLog(getClass());

    @Override
    public String getResult(String jsonStr) {
        return jsonStr;
    }

    @Override
    public <T> T getResult(Class<T> requiredType, Object object) {
        logger.info("StandardResult Impl");
        return (T)object;
    }

}
